package org.leanr.spring5.staticproxy;

//房屋代理
public class HouseProxy  implements Rent{

    private Host host;

    public HouseProxy(Host host) {
        this.host = host;
    }

    public void rent() {
        this.seeHouse();
        host.rent();
        this.signContract();

    }

    public void seeHouse(){
        System.out.println("看房子");
    }

    public void signContract(){
        System.out.println("签租赁合同");
    }
}
